package test;

class Number{
    int i;
    Number(){}
    Number(int _i){i = _i;}
    void print(){System.out.println(i);}
}

public class TestRef{
    public static void changeNum(Number b){
        b = new Number(100);
    }
    public static void main(String[] args){
        Number n = new Number(2);
        n.print();
        changeNum(n);
        n.print();
    }
}
